        var myMenu1 = new ypSlideOutMenu("menu1", "down", -1000, 144, 198, 300, null)
		myMenu1.onactivate = function() { repositionMenu(myMenu1, -407); }
		
        var myMenu2 = new ypSlideOutMenu("menu2", "down", -1000, 144, 220, 300, null)
		myMenu2.onactivate = function() { repositionMenu(myMenu2, -312); }
		
		var myMenu2a = new ypSlideOutMenu("menu2a", "right", -1000, 184, 176, 112, null)
		myMenu2a.onactivate = function() { repositionMenu(myMenu2a, -93); }
		
		var myMenu2b = new ypSlideOutMenu("menu2b", "right", -1000, 164, 176, 112, null)
		myMenu2b.onactivate = function() { repositionMenu(myMenu2b, -93); }
		
		var myMenu2c = new ypSlideOutMenu("menu2c", "right", -1000, 144, 176, 112, null)
		myMenu2c.onactivate = function() { repositionMenu(myMenu2c, -93); }

		
//		var myMenu2b = new ypSlideOutMenu("menu2b", "right", -1000, 198, 154, 150, null)
//		myMenu2b.onactivate = function() { repositionMenu(myMenu2b, 2); }
		
//		var myMenu2c = new ypSlideOutMenu("menu2c", "right", -1000, 238, 184, 150, null)
//		myMenu2c.onactivate = function() { repositionMenu(myMenu2c, 2); }
		
//		var myMenu2d = new ypSlideOutMenu("menu2d", "right", -1000, 258, 184, 150, null)
//		myMenu2d.onactivate = function() { repositionMenu(myMenu2d, 2); }
		
        var myMenu3 = new ypSlideOutMenu("menu3", "down", -1000, 118, 220, 300, null)
		myMenu3.onactivate = function() { repositionMenu(myMenu3, 116); }
		
		var myMenu4 = new ypSlideOutMenu("menu4", "down", -1000, 118, 220, 300, null)
		myMenu4.onactivate = function() { repositionMenu(myMenu4, 200); }
		
		//var myMenu5 = new ypSlideOutMenu("menu5", "down", -1000, 231, 134, 112, null)
		//myMenu5.onactivate = function() { repositionMenu(myMenu5, 155); }
		
		
		function repositionMenu(menu, offset)
		{
			var newLeft = getWindowWidth() / 2 + offset;
			menu.container.style ? menu.container.style.left = newLeft + "px" : menu.container.left = newLeft;
		}
		function getWindowWidth()
		{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
		}	
    ypSlideOutMenu.writeCSS();
